/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package simple.utils.directorywatch;

import java.io.File;

/**
 *
 * @author rehak
 */
public class FileEvent {

    public enum FileEventType {

        NEW, MODIFY, DELETE
    }
    private final File file;
    private final FileEventType type;

    public FileEvent(File file, FileEventType type) {
        this.type = type;
        this.file = file;
    }

    public File getFile() {
        return file;
    }

    public FileEventType getType() {
        return type;
    }

    @Override
    public String toString() {
        return "FileEvent{" + "file=" + file + ", type=" + type + '}';
    }
    
    
}
